package com.hnu.highlynewapp.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hnu.highlynewapp.utils.PageUtils;
import com.hnu.highlynewapp.utils.Query;

import com.hnu.highlynewapp.dao.PolicyCategoryIndexDao;
import com.hnu.highlynewapp.entity.PolicyCategoryIndexEntity;
import com.hnu.highlynewapp.service.PolicyCategoryIndexService;


@Service("policyCategoryIndexService")
public class PolicyCategoryIndexServiceImpl extends ServiceImpl<PolicyCategoryIndexDao, PolicyCategoryIndexEntity> implements PolicyCategoryIndexService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PolicyCategoryIndexEntity> page = this.page(
                new Query<PolicyCategoryIndexEntity>().getPage(params),
                new QueryWrapper<PolicyCategoryIndexEntity>()
        );

        return new PageUtils(page);
    }

}